<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NINJA: NINJA/TreeBuilder.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">NINJA
   &#160;<span id="projectnumber">2.x</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_tree_builder_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">TreeBuilder.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_tree_builder_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef TREEBUILDER_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define TREEBUILDER_HPP</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_tree_node_8hpp.html">TreeNode.hpp</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_tree_builder.html">    9</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_tree_builder.html">TreeBuilder</a> {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    <a class="code" href="class_tree_builder.html#a50223a97cf2e33142ced2c212e22cad6">TreeBuilder</a>(std::string **<a class="code" href="class_tree_builder.html#adf035970b6627d0249558400609b2cf9">names</a>, <span class="keywordtype">int</span> **distances, <span class="keywordtype">int</span> namesSize);</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <a class="code" href="class_tree_builder.html#aaf3859d93a39df4713024db0efd6dc0a">~TreeBuilder</a>();</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a93869c0b95d628222e1e1f641a696cc3">   15</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_tree_builder.html#a93869c0b95d628222e1e1f641a696cc3">distInMem</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a18f0e3b92f71dcba08d8146115d85e03">   16</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_tree_builder.html#a18f0e3b92f71dcba08d8146115d85e03">rebuildStepsConstant</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_tree_builder.html#aa4858f795129eb29decc59def89f9863">   17</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="class_tree_builder.html#aa4858f795129eb29decc59def89f9863">rebuildStepRatio</a>;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a5ad2e53bba32c295b58874f8085d1b79">   18</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_tree_builder.html#a5ad2e53bba32c295b58874f8085d1b79">rebuildSteps</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a7d2987bb2165ecc06261568ece739783">   19</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_tree_builder.html#a7d2987bb2165ecc06261568ece739783">candidateIters</a>;</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a5b3775c9a0d0aab28b4aae727ef6576c">   20</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="class_tree_builder.html#a5b3775c9a0d0aab28b4aae727ef6576c">clustCnt</a> = 30;</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a2d49b744496d897a2d752bb5cd5c3a98">   21</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_tree_builder.html#a2d49b744496d897a2d752bb5cd5c3a98">verbose</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_tree_builder.html#ab34a44da83ef16f3cada5eacd6e89d0a">   22</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_tree_builder.html#ab34a44da83ef16f3cada5eacd6e89d0a">K</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_tree_builder.html#adf035970b6627d0249558400609b2cf9">   25</a></span>&#160;    std::string **<a class="code" href="class_tree_builder.html#adf035970b6627d0249558400609b2cf9">names</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a3492015b7d90ae531e127d48edd57a3f">   26</a></span>&#160;    <span class="keywordtype">int</span> **<a class="code" href="class_tree_builder.html#a3492015b7d90ae531e127d48edd57a3f">D</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a2a7cf93c4f83694655b42b66841ec022">   27</a></span>&#160;    <span class="keywordtype">int</span> *<a class="code" href="class_tree_builder.html#a2a7cf93c4f83694655b42b66841ec022">R</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a4a5d969e496a1b78847521b3dff8ce9e">   28</a></span>&#160;    <a class="code" href="class_tree_node.html">TreeNode</a> **<a class="code" href="class_tree_builder.html#a4a5d969e496a1b78847521b3dff8ce9e">nodes</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a920fc80b7d5e19e0caabeb21827eae40">   29</a></span>&#160;    <span class="keywordtype">int</span> *<a class="code" href="class_tree_builder.html#a920fc80b7d5e19e0caabeb21827eae40">redirect</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a38fb7d80b54e7ef8fb45eb645a92db39">   30</a></span>&#160;    <span class="keywordtype">int</span> *<a class="code" href="class_tree_builder.html#a38fb7d80b54e7ef8fb45eb645a92db39">nextActiveNode</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a0906754cc42b0da0fd1e74a9f788f8c1">   31</a></span>&#160;    <span class="keywordtype">int</span> *<a class="code" href="class_tree_builder.html#a0906754cc42b0da0fd1e74a9f788f8c1">prevActiveNode</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_tree_builder.html#a79c366bd440a80d4d33d74b5b067c319">   32</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_tree_builder.html#a79c366bd440a80d4d33d74b5b067c319">firstActiveNode</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_tree_builder.html#a1febaf1b495ebfb94b0017111560f45c">finishMerging</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;};</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclass_tree_node_html"><div class="ttname"><a href="class_tree_node.html">TreeNode</a></div><div class="ttdef"><b>Definition:</b> TreeNode.hpp:9</div></div>
<div class="ttc" id="aclass_tree_builder_html_a7d2987bb2165ecc06261568ece739783"><div class="ttname"><a href="class_tree_builder.html#a7d2987bb2165ecc06261568ece739783">TreeBuilder::candidateIters</a></div><div class="ttdeci">static int candidateIters</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:19</div></div>
<div class="ttc" id="aclass_tree_builder_html_a2d49b744496d897a2d752bb5cd5c3a98"><div class="ttname"><a href="class_tree_builder.html#a2d49b744496d897a2d752bb5cd5c3a98">TreeBuilder::verbose</a></div><div class="ttdeci">static int verbose</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:21</div></div>
<div class="ttc" id="aclass_tree_builder_html_ab34a44da83ef16f3cada5eacd6e89d0a"><div class="ttname"><a href="class_tree_builder.html#ab34a44da83ef16f3cada5eacd6e89d0a">TreeBuilder::K</a></div><div class="ttdeci">int K</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:22</div></div>
<div class="ttc" id="aclass_tree_builder_html_a1febaf1b495ebfb94b0017111560f45c"><div class="ttname"><a href="class_tree_builder.html#a1febaf1b495ebfb94b0017111560f45c">TreeBuilder::finishMerging</a></div><div class="ttdeci">void finishMerging()</div><div class="ttdef"><b>Definition:</b> TreeBuilder.cpp:54</div></div>
<div class="ttc" id="aclass_tree_builder_html"><div class="ttname"><a href="class_tree_builder.html">TreeBuilder</a></div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:9</div></div>
<div class="ttc" id="aclass_tree_builder_html_a93869c0b95d628222e1e1f641a696cc3"><div class="ttname"><a href="class_tree_builder.html#a93869c0b95d628222e1e1f641a696cc3">TreeBuilder::distInMem</a></div><div class="ttdeci">static bool distInMem</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:15</div></div>
<div class="ttc" id="aclass_tree_builder_html_a0906754cc42b0da0fd1e74a9f788f8c1"><div class="ttname"><a href="class_tree_builder.html#a0906754cc42b0da0fd1e74a9f788f8c1">TreeBuilder::prevActiveNode</a></div><div class="ttdeci">int * prevActiveNode</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:31</div></div>
<div class="ttc" id="aclass_tree_builder_html_adf035970b6627d0249558400609b2cf9"><div class="ttname"><a href="class_tree_builder.html#adf035970b6627d0249558400609b2cf9">TreeBuilder::names</a></div><div class="ttdeci">std::string ** names</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:25</div></div>
<div class="ttc" id="a_tree_node_8hpp_html"><div class="ttname"><a href="_tree_node_8hpp.html">TreeNode.hpp</a></div></div>
<div class="ttc" id="aclass_tree_builder_html_a5b3775c9a0d0aab28b4aae727ef6576c"><div class="ttname"><a href="class_tree_builder.html#a5b3775c9a0d0aab28b4aae727ef6576c">TreeBuilder::clustCnt</a></div><div class="ttdeci">static const int clustCnt</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:20</div></div>
<div class="ttc" id="aclass_tree_builder_html_a38fb7d80b54e7ef8fb45eb645a92db39"><div class="ttname"><a href="class_tree_builder.html#a38fb7d80b54e7ef8fb45eb645a92db39">TreeBuilder::nextActiveNode</a></div><div class="ttdeci">int * nextActiveNode</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:30</div></div>
<div class="ttc" id="aclass_tree_builder_html_a5ad2e53bba32c295b58874f8085d1b79"><div class="ttname"><a href="class_tree_builder.html#a5ad2e53bba32c295b58874f8085d1b79">TreeBuilder::rebuildSteps</a></div><div class="ttdeci">static int rebuildSteps</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:18</div></div>
<div class="ttc" id="aclass_tree_builder_html_a4a5d969e496a1b78847521b3dff8ce9e"><div class="ttname"><a href="class_tree_builder.html#a4a5d969e496a1b78847521b3dff8ce9e">TreeBuilder::nodes</a></div><div class="ttdeci">TreeNode ** nodes</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:28</div></div>
<div class="ttc" id="aclass_tree_builder_html_a3492015b7d90ae531e127d48edd57a3f"><div class="ttname"><a href="class_tree_builder.html#a3492015b7d90ae531e127d48edd57a3f">TreeBuilder::D</a></div><div class="ttdeci">int ** D</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:26</div></div>
<div class="ttc" id="aclass_tree_builder_html_aa4858f795129eb29decc59def89f9863"><div class="ttname"><a href="class_tree_builder.html#aa4858f795129eb29decc59def89f9863">TreeBuilder::rebuildStepRatio</a></div><div class="ttdeci">static float rebuildStepRatio</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:17</div></div>
<div class="ttc" id="aclass_tree_builder_html_a920fc80b7d5e19e0caabeb21827eae40"><div class="ttname"><a href="class_tree_builder.html#a920fc80b7d5e19e0caabeb21827eae40">TreeBuilder::redirect</a></div><div class="ttdeci">int * redirect</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:29</div></div>
<div class="ttc" id="aclass_tree_builder_html_a79c366bd440a80d4d33d74b5b067c319"><div class="ttname"><a href="class_tree_builder.html#a79c366bd440a80d4d33d74b5b067c319">TreeBuilder::firstActiveNode</a></div><div class="ttdeci">int firstActiveNode</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:32</div></div>
<div class="ttc" id="aclass_tree_builder_html_a2a7cf93c4f83694655b42b66841ec022"><div class="ttname"><a href="class_tree_builder.html#a2a7cf93c4f83694655b42b66841ec022">TreeBuilder::R</a></div><div class="ttdeci">int * R</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:27</div></div>
<div class="ttc" id="aclass_tree_builder_html_a18f0e3b92f71dcba08d8146115d85e03"><div class="ttname"><a href="class_tree_builder.html#a18f0e3b92f71dcba08d8146115d85e03">TreeBuilder::rebuildStepsConstant</a></div><div class="ttdeci">static bool rebuildStepsConstant</div><div class="ttdef"><b>Definition:</b> TreeBuilder.hpp:16</div></div>
<div class="ttc" id="aclass_tree_builder_html_a50223a97cf2e33142ced2c212e22cad6"><div class="ttname"><a href="class_tree_builder.html#a50223a97cf2e33142ced2c212e22cad6">TreeBuilder::TreeBuilder</a></div><div class="ttdeci">TreeBuilder(std::string **names, int **distances, int namesSize)</div><div class="ttdef"><b>Definition:</b> TreeBuilder.cpp:10</div></div>
<div class="ttc" id="aclass_tree_builder_html_aaf3859d93a39df4713024db0efd6dc0a"><div class="ttname"><a href="class_tree_builder.html#aaf3859d93a39df4713024db0efd6dc0a">TreeBuilder::~TreeBuilder</a></div><div class="ttdeci">~TreeBuilder()</div><div class="ttdef"><b>Definition:</b> TreeBuilder.cpp:47</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_994258571ff4fe75827c48a736f217ad.html">NINJA</a></li><li class="navelem"><a class="el" href="_tree_builder_8hpp.html">TreeBuilder.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
  </ul>
</div>
</body>
</html>
